package com.dwxt.common.base;

public enum StatusCode {

    SUCCESS(200, "SUCCESS"),
    FAIL(500, "服务器内部错误"),
    PARAMETER_WRONG(1001, "请求参数有误"),
    USERNAME_PASSWORD_WRONG(1002, "用户名或密码错误"),
    PERMISSION_FAIL(1003, "权限不足,请重新登录"),
    SMS_CANNOT_USE(1004, "短信服务器无法连接！"),
    SMS_CODE_ERROR(1005, "验证码错误"),
    MAC_ALREADY(1006, "mac地址已存在"),
    SERIAL_EXIST(1007, "序列号已存在"),
    TOKEN_ERROR(1008, "token认证未通过"),
    PHONE_EXIST(1009, "电话号码重复"),
    CAMERA_NOT_EXIST(1010, "相机不存在"),
    CAMERA_LIMIT(1011, "相机已达上限"),
    DEVICE_FAIL(1012, "设备启动或结束失败"),
    DEVICE_CHECK_FAIL(1013, "超脑故障"),


    /**  公共都能用的 */
    ID_IS_NULL(3000, "id不能为空"),

    ;

    StatusCode(Integer status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    private Integer status;
    private String msg;

    public Integer getStatus() {
        return status;
    }

    public String getMsg() {
        return msg;
    }


}
